

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <script type="text/javascript" src ="${resource(dir:'js',file:'function.js')}">
        </script>
        <title>Booking列表</title>
    </head>
    <body>
        <div class="body">
            <h1>Booking列表</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="list">
                <table>
                    <thead>
                        <tr>
                        
                   	        <g:sortableColumn property="id" title="Id" />
                        
                   	        <th>Booking Items</th>
                   	    
                   	        <g:sortableColumn property="bookingNum" title="Booking Num" />
                        
                   	        <g:sortableColumn property="consigneeAddr" title="Consignee Addr" />
                        
                   	        <g:sortableColumn property="consigneeName" title="Consignee Name" />
                        
                   	        <g:sortableColumn property="consigneePhone" title="Consignee Phone" />
                        
                        </tr>
                    </thead>
                    <tbody>
                    <g:each in="${bookingInstanceList}" status="i" var="bookingInstance">
                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
                        
                            <td><g:link action="show" id="${bookingInstance.id}">${fieldValue(bean:bookingInstance, field:'id')}</g:link></td>
                        
                            <td>${fieldValue(bean:bookingInstance, field:'bookingItems')}</td>
                        
                            <td>${fieldValue(bean:bookingInstance, field:'bookingNum')}</td>
                        
                            <td>${fieldValue(bean:bookingInstance, field:'consigneeAddr')}</td>
                        
                            <td>${fieldValue(bean:bookingInstance, field:'consigneeName')}</td>
                        
                            <td>${fieldValue(bean:bookingInstance, field:'consigneePhone')}</td>
                        
                        </tr>
                    </g:each>
                    </tbody>
                </table>
            </div>
            <div class="paginateButtons">
                <g:paginate total="${bookingInstanceTotal}" />
            </div>
        </div>
    </body>
</html>
